package cn.iocoder.yudao.module.system.api.userChangeMobileRecordrecord;


import cn.iocoder.yudao.module.system.dal.dataobject.userChangeMobileRecordrecord.UserChangeMobileRecordrecordDO;
import cn.iocoder.yudao.module.system.service.userChangeMobileRecordrecord.UserChangeMobileRecordrecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserChangeMobileRecordrecordApiImpl implements  UserChangeMobileRecordrecordApi{

    @Resource
    private UserChangeMobileRecordrecordService userChangeMobileRecordrecordService;

    @Override
    public Boolean isChangePhone(String newPhone) {
        UserChangeMobileRecordrecordDO userChangeMobileRecordrecordDO=userChangeMobileRecordrecordService.getUserChangeMobileRecordrecordByPhone(newPhone);
        if(userChangeMobileRecordrecordDO==null){
            return true;
        }
        return false;
    }
}
